<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">

    <title>Title</title>
    <style>
        #box1,#box2{
            border: skyblue 1px ;
            background-color: skyblue;
            height: 50px;
             vertical-align: center;
        }
        #box1{
             margin-bottom: 5px;
            margin-left:5px;
        }
        #box2{
            /*margin: 5px;*/
            /*margin-top: 5px;*/
            /*margin-right: 5px;*/
            margin: 5px 10px;
        }
        #box2{
            border-top:  5px solid red;
            border-right: 5px dotted black ;
            border-left: 5px solid lightskyblue;
            border-bottom: 5px dashed black;
            padding: 10px;
            box-sizing: border-box;
        }


    </style>


</head>
<body>
<div id="box1">
    这是一个div盒子1<br>


</div>
<div id="box2">
    这是一个div盒子2这是一个div盒子2这是一个div盒子2
</div>
</body>
</html>